<template>
	<div class="address-name">
		<img src="@/assets/icon/weizhi@3x.png" />
		<div class="font-size-12 div-over-width">{{ address_name || '暂无位置信息' }}</div>
	</div>
</template>

<script>
import cookie from '@/utils/cookie';

export default {
	name: 'addressTitle',
	data() {
		return {
			address_name: '', //位置姓名
		}
	},
	mounted() {
		this.address_name = JSON.parse(cookie.get('location')).formattedAddress;
	}
};
</script>

<style lang="scss" scoped>
.address-name {
	width: 100%;
	padding: 0 0 .241546rem 0;
	display: flex;
	align-items: center;
	margin: .048309rem 0 .289855rem 0;

	img {
		width: .289855rem;
		margin-right: .048309rem;
	}
}
</style>
